{{extend 'layout.html'}}
<script type="text/javascript" src="/static/jquery.js"></script>
<script type="text/javascript" src="/static/common.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $('#allkeys').click(checkAll);
    $("input[name='selected']").click(updateBtnAndBox);
});
</script>


<form action="" method='post'>

<p class="below_h2"><input id="allkeys" type="checkbox" /> | <input id="delete_button" type="submit" value="Delete selected items" disabled="disabled"/></p>
<ul id="comments">
{{ cycle = Cycle('odd', 'even') }}
{{for c in comments:}}
    <li class="{{=cycle.next()}}">
        <p>
        <a href="{{=c.site}}">{{=c.author}}</a>
        commented on <a href="/view/{{=c.entry.index}}">{{=c.entry.title}}</a> at {{=c.datestr()}}
        | <input name="selected" type="checkbox" value="{{=c.index}}" />
        </p>
        <p>{{=c.content}}</p>
    </li>
{{pass}}
</ul>
{{if links['prev'] > 0:}}
<a href="/admin/comment/{{=links['prev']}}">Prev</a>
{{pass}}
{{if links['next'] > 0:}}
<a href="/admin/comment/{{=links['next']}}">Next</a>
{{pass}}
